package card;

import junit.framework.Assert;
import junit.framework.TestCase;

public class CardTest extends TestCase {

	public void testUpperCase() {
		Card c = new Card("2D");
		String s = c.getDescription();
		Assert.assertEquals("Two of Diamonds", s);
	}
	
	public void testWrongNumber() {
		Card c = new Card("D2");
		String s = c.getDescription();
		Assert.assertEquals("Unknown", s);
	}
	
	public void testLowerCase() {
		Card c = new Card("th");
		String s = c.getDescription();
		Assert.assertEquals("Ten of Hearts", s);
	}
	
	public void testWrongType() {
		Card c = new Card("qR");
		String s = c.getDescription();
		Assert.assertEquals("Unknown", s);
	}
}
